package com.bootdo.per.service;

import com.bootdo.common.utils.Query;
import com.bootdo.per.domain.PersonDO;
import com.bootdo.per.domain.TeamDO;
import com.bootdo.system.domain.UserDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * @author readke
 * @email 1992lcg@163.com
 * @date 2018-06-05 17:51:30
 */
public interface PersonService {
	
	PersonDO get(Long id);
	
	List<PersonDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(PersonDO score);
	
	int update(PersonDO score);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	List<PersonDO> listByGroup(Query query);

	int listByGroupCount(Query query);

	int saveList(List<PersonDO> list);

	int updateList(List<PersonDO> list);


	List<Map<String, Object>> getPersonResult(Map<String, Object> map);
	
	//根据年份得到所有人的用户名
	List<String> getPersonByYear(Integer year);
	
	//根据根据部门或评分人和年份得到所有人的用户名得到所有人的用户名
	List<String> getPersonByDeptAndSys(Map<String,Object> map);
	
	//得到所有人的12个月的分数
	List<PersonDO> listAllScore(String userName);
	
}
